﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">


  <!-- Replace E-mail a link button -->
  <CustomAction
    Id="Ribbon.Documents.Share.ExtendedEmail"
    GroupId="Ribbon.Documents.Share"
    Location="CommandUI.Ribbon"
    Title="dumbo"
    >
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition
          Location="Ribbon.Documents.Share.EmailItemLink">

          <Button
                Id="Ribbon.Documents.Share.EmailMultipleLink"
                Sequence="10"
                Command="EmailMultipleLink"
                Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png" Image16by16Top="-16" Image16by16Left="-88"
                Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png" Image32by32Top="-128" Image32by32Left="-448"
                LabelText="$Resources:core,cui_ButEmailLink;"
                ToolTipTitle="$Resources:core,cui_ButEmailLink;"
                ToolTipDescription="$Resources:core,cui_STT_ButEmailLinkDocument;"
                TemplateAlias="o1"
                />

        </CommandUIDefinition>
          
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
          Command="EmailMultipleLink"
          EnabledScript="javascript:SPM.ListManagement.EmailLink.IsAvailable();"
          CommandAction="javascript:SPM.ListManagement.EmailLink.Create();" />
      </CommandUIHandlers>
    </CommandUIExtension>
    
  </CustomAction>
</Elements>
